//
//  PlistFileHelper.h
//  SaiNiuHui
//
//  Created by 吕飞俊 on 16/2/17.
//  Copyright © 2016年 国都快易科技（深圳）有限公司. All rights reserved.
//

/**保存文件的开关*/
#ifdef DEBUG
#define SavePlistFile   0
#else
#define SavePlistFile   1
#endif

#ifdef DEBUG
#define SaveHtmlFile   0
#else
#define SaveHtmlFile   1
#endif

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

@interface PlistFileHelper : NSObject

#pragma mark save img
+(BOOL)fileExistsAtPath:(NSString *)filePath;

+(UIImage *)getimgData:(NSString *)key uid:(NSString *)uid;

+(NSString *)getimgPath:(NSString *)imgName uid:(NSString *)uid;

+(NSString *)getImgUserFilePath:(NSString *)uid;

+(NSString *)getImgOpenFilePath;
//创建文件夹
+(void)createDirectoryAtPath:path;

//创建文件
+(void)createFileAtPath:filePath;

#pragma mark    catch

+(void)saveDicToJson:(id)dic key:(NSString *)key docName:(NSString *)docName;

+(void)saveDicToPlist:(id)dic key:(NSString *)key;
+(NSDictionary *)readToPlist:(NSString *)key fileName:(NSString *)fileName;

#pragma mark    html

+(void)saveCatchHtml:(NSString *)urlString;

+(NSString *)getCatchHtmlPath:(NSString *)urlString;

@end
